<tag attr="<selection>va<caret>lue</selection>" another="value">

  some Text

</tag>